﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.Common;

namespace Sinacor.Servico.Bovespa.Ordens.Service.ServiceImplementation.Translator
{
    public class TranslateConsultarOrdemInconsistenciaRequestToParameter : BaseTranslator<BusinessEntity.Parameter.ConsultarOrdemInconsistencia, DataContract.Request.ConsultarOrdemInconsistenciaRequest,
                                                                            List<BusinessEntity.Parameter.ConsultarOrdemInconsistencia>, List<DataContract.Request.ConsultarOrdemInconsistenciaRequest>>
    {
        public override Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Parameter.ConsultarOrdemInconsistencia Translate(Sinacor.Servico.Bovespa.Ordens.Service.DataContract.Request.ConsultarOrdemInconsistenciaRequest from){
            if(from == null){
                return null;
            }

            BusinessEntity.Parameter.ConsultarOrdemInconsistencia to = new Sinacor.Servico.Bovespa.Ordens.BusinessEntity.Parameter.ConsultarOrdemInconsistencia();

            to.DataOrdem = from.DataOrdem;
            to.DataPregao = from.DataPregao;
            to.NumeroOrdem = from.NumeroOrdem;
            to.NumeroOrdemSubSequencia = from.NumeroOrdemSubSequencia;

            return to;
        }
    }
}